package com.kanshu.ksgb.fastread.doudou.common.business.commonbean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Title: SignInBean.java
 * Description: 签到列表
 * Copyright: Copyright(c)2017
 * Company: 成都古羌科技有限公司
 * CreateTime: 2017/12/19 17:42
 *
 * @author EvanHe
 * @version 1.0
 */
public class SignInBeanNew implements Parcelable {
    public static final int UN_SIGN_IN = 0;
    public static final int SIGN_IN_SUCCESS = 1;
    public static final int SUPPLEMENT = -1;
    public static final int SUPPLEMENT_SUCCESS = 2;
    public int week;
    public String week_str;
    public int beans;
    // 0 未签到 1 签到 2 补签
    public int signin;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.week);
        dest.writeString(this.week_str);
        dest.writeInt(this.beans);
        dest.writeInt(this.signin);
    }

    public SignInBeanNew() {
    }

    protected SignInBeanNew(Parcel in) {
        this.week = in.readInt();
        this.week_str = in.readString();
        this.beans = in.readInt();
        this.signin = in.readInt();
    }

    public static final Parcelable.Creator<SignInBeanNew> CREATOR = new Parcelable.Creator<SignInBeanNew>() {
        @Override
        public SignInBeanNew createFromParcel(Parcel source) {
            return new SignInBeanNew(source);
        }

        @Override
        public SignInBeanNew[] newArray(int size) {
            return new SignInBeanNew[size];
        }
    };
}
